import request from '@/utils/request'

// 查询教学计划列表
export function listTeachPlan(query) {
  return request({
    url: '/teach/teachPlan/list',
    method: 'get',
    params: query
  })
}


// 查询自己的教学计划列表
export function listMyTeachPlan(query) {
  return request({
    url: '/teach/teachPlan/my',
    method: 'get',
    params: query
  })
}


// 查询教学计划详细
export function getTeachPlan(id) {
  return request({
    url: '/teach/teachPlan/' + id,
    method: 'get'
  })
}


// 查询教学计划详细
export function getTeachPlanDetail(id) {
  return request({
    url: '/teach/teachPlan/detail/' + id,
    method: 'get'
  })
}

// 新增教学计划
export function addTeachPlan(data) {
  return request({
    url: '/teach/teachPlan',
    method: 'post',
    data: data
  })
}

// 修改教学计划
export function updateTeachPlan(data) {
  return request({
    url: '/teach/teachPlan',
    method: 'put',
    data: data
  })
}

// 删除教学计划
export function delTeachPlan(id) {
  return request({
    url: '/teach/teachPlan/' + id,
    method: 'delete'
  })
}

// 导出教学计划
export function exportTeachPlan(query) {
  return request({
    url: '/teach/teachPlan/export',
    method: 'get',
    params: query
  })
}
